/*
 * @Author: tyz
 * @Date: 2021-06-24 11:37:28
 * @LastEditTime: 2021-06-24 14:32:24
 * @Description: 邮件配置项
 * @FilePath: \nest_demo\src\config\email.config.ts
 */
import { join } from 'path';
import { PugAdapter } from '@nestjs-modules/mailer/dist/adapters/pug.adapter';

export default {
    transport: 'smtps://1255968521@qq.com:tsjjzmqcmhmoheje@smtp.qq.com', // 在邮箱中开启POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务
    defaults: { // 设置默认数据
        from: '"nest-modules" <modules@nestjs.com>',
    },
    template: {
        dir: join(__dirname, '../template/email'),
        adapter: new PugAdapter(),
        options: {
            strict: true,
        },
    },
}